package net.mukia.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import net.mukia.model.Article;
import net.mukia.repository.ArticleRepository;
import net.mukia.service.ArticleService;

@Service("articleService")
public class ArticleServiceImpl implements ArticleService {

	@Override
	public void save(Article article) {
		articleRepository.insert(article);
	}

	@Override
	public List<Article> queryAll(Article article) {
		return articleRepository.selectAll(article);
	}

	@Resource
	private ArticleRepository articleRepository;

	public void setArticleRepository(ArticleRepository articleRepository) {
		this.articleRepository = articleRepository;
	}

	

}
